package com.neuedu.api;

import com.neuedu.entity.Department;
import com.neuedu.entity.RegistLevel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("admin")
public interface AdminService {
    @GetMapping("/department/getRegisterDept")
    List<Department> getRegisterDept();
    @GetMapping("/registLevel/getActive")
    List<RegistLevel> getRegistLevelActive();

    @GetMapping("/employee/getNameById")
    String getNameById(@RequestParam("id") Long id);
}
